package com.zjitc.controller;


import com.zjitc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/28 13:53
 * @description:
 */

@Controller
@RequestMapping(value = "/user",method = RequestMethod.POST)
public class UserController {

  @Autowired
  private UserService userService;

  @RequestMapping(value = "/addEmps",method = RequestMethod.GET)
  @ResponseBody
  public void test() {
    for (int i=0;i<=10;i++){
      int abc=userService.addEmps();
    }
  }
}